package com.foxit.pdf2pdf.web.common;

import java.io.Serializable;
import java.util.Map;

public class TaskBean implements Serializable {

	/**
	 * serialVersionUID.
	 */
	private static final long serialVersionUID = -6226969436481155290L;

	private String type;

	private Map<String, String> parameters;

	private String id;

	private int ret;

	private String msg = "";

	/*
	 * public Task(){ this.id = String.valueOf(new
	 * Random(System.currentTimeMillis()).nextLong()); }
	 */

	/**
	 * toString.
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Task [type=" + type + ", parameters=" + parameters + ", id=" + id + "]";
	}

	/**
	 * type Getter.
	 * 
	 * @return type
	 */
	public String getType() {
		return type;
	}

	/**
	 * type Setter.
	 * 
	 * @param type type
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * parameters Getter.
	 * 
	 * @return parameters
	 */
	public Map<String, String> getParameters() {
		return parameters;
	}

	/**
	 * parameters Setter.
	 * 
	 * @param parameters parameters
	 */
	public void setParameters(Map<String, String> parameters) {
		this.parameters = parameters;
	}

	/**
	 * id Getter.
	 * 
	 * @return id
	 */
	public String getId() {
		return id;
	}

	/**
	 * id Setter.
	 * 
	 * @param id id
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * ret Getter.
	 * 
	 * @return ret
	 */
	public int getRet() {
		return ret;
	}

	/**
	 * ret Setter.
	 * 
	 * @param ret ret
	 */
	public void setRet(int ret) {
		this.ret = ret;
	}

	/**
	 * msg Getter.
	 * 
	 * @return msg
	 */
	public String getMsg() {
		return msg;
	}

	/**
	 * msg Setter.
	 * 
	 * @param msg msg
	 */
	public void setMsg(String msg) {
		this.msg = msg;
	}
}
